package com.college.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 借阅信息
 * </p>
 *
 * @author yoki
 * @since 2024-05-29
 */
@Getter
@Setter
@TableName("borrow_info")
@ApiModel(value = "BorrowInfo对象", description = "借阅信息")
public class BorrowInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学期")
    @TableField("semester")
    private String semester;

    @ApiModelProperty("学号")
    @TableField("student_number")
    private String studentNumber;

    @ApiModelProperty("图书编号")
    @TableField("book_number")
    private String bookNumber;

    @ApiModelProperty("借出时间")
    @TableField("borrow_time")
    private Date borrowTime;

    @ApiModelProperty("归还时间")
    @TableField("return_time")
    private Date returnTime;

    @ApiModelProperty("应当归还时间")
    @TableField("due_return_time")
    private Date dueReturnTime;

    @ApiModelProperty("是否归还（0是未归还，1是已归还）")
    @TableField("is_return")
    private Integer isReturn;


}
